package OOP.Poly_Exercise.PolyExercise_Arr;

public class Dog extends Animal {
    public Dog(String name) {
        super(name);
    }

    public void cry(){
        System.out.println("i am a dog "+this.getName());
    }

    public void eat(){
        System.out.println(this.getName()+" is eating");
    }
}
